<%# BEWARE: this template is also used in the bootstrap environment -%>
<% if has_variable?('::lsbdistdescription') -%>
<%   description = scope.lookupvar('::lsbdistdescription') -%>
<% else -%>
<%   description = "#{scope.lookupvar('::operatingsystem')} #{scope.lookupvar('::operatingsystemrelease')}" -%>
<% end -%>
GNM Puppet Managed | <%= description %>
<% if has_variable?('::productname') -%>
<%= scope.lookupvar('::productname') %>
<% end -%>

<% if has_variable?('::stage') -%>
    stage: <%= scope.lookupvar('::stage') %>
<% end -%>
<% if has_variable?('role') -%>
<% if has_variable?('mongo_replset') -%>
     role: <%= scope.lookupvar('role') %> (<%= scope.lookupvar('mongo_replset') %>)
<% else -%>
     role: <%= scope.lookupvar('role') %>
<% end -%>
<% end -%>
<% if has_variable?('::mainclass') -%>
mainclass: <%= scope.lookupvar('::mainclass') %>
<% end -%>
<% if has_variable?('::ec2_instance_id') -%>
 instance: <%= scope.lookupvar('::ec2_instance_id') %> (<%= scope.lookupvar('::architecture') %>/<%= scope.lookupvar('::ec2_instance_type') %>/<%= scope.lookupvar('::ec2_ami_id') %>)
placement: <%= scope.lookupvar('::ec2_placement_availability_zone') %>
   public: <%= scope.lookupvar('::ec2_public_hostname') %> (<%= scope.lookupvar('::ec2_public_ipv4') %>)
    local: <%= scope.lookupvar('::ec2_local_hostname') %> (<%= scope.lookupvar('::ec2_local_ipv4') %>)
<% elsif has_variable?('::ipaddress') -%>
 hostname: <%= scope.lookupvar('::fqdn') %> (<%= scope.lookupvar('::ipaddress') %>)
<% else -%>
 hostname: <%= scope.lookupvar('::fqdn') %> (<%= scope.lookupvar('::ipaddress') %>)
<% end -%>
<% if has_variable?('::host_hash') -%>
host_hash: <%= scope.lookupvar('::host_hash') %>

<% end %>
